package red.service.impl;

import red.mapper.Pagermapper;
import red.model.ArticleModel;
import red.service.PageService;
import red.util.Model;

public class PageServiceImpl implements PageService {

    @Override
    public ArticleModel pagenum(Model model, Pagermapper pagermapper) {
        String username = (String)model.get("user");
        ArticleModel articleModel = new ArticleModel();
        articleModel.setUser_name(username);
        pagermapper.pagenum(articleModel);
        return articleModel;
    }
}
